package com.caipin.domain.table;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:33
 * @Description: TODO
 */
@TableName("t_gate_attribute")
public class GateAttribute {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String deviceId;

    private String uuid;

    private String nationCode;

    private String temperature;

    private Boolean mask;

    private Long screenTime;

    private String imgBase64;

    public com.caipin.domain.table.GateAttribute setId(Long id) {
        this.id = id;
        return this;
    }

    public com.caipin.domain.table.GateAttribute setDeviceId(String deviceId) {
        this.deviceId = deviceId;
        return this;
    }

    public com.caipin.domain.table.GateAttribute setUuid(String uuid) {
        this.uuid = uuid;
        return this;
    }

    public com.caipin.domain.table.GateAttribute setNationCode(String nationCode) {
        this.nationCode = nationCode;
        return this;
    }

    public com.caipin.domain.table.GateAttribute setTemperature(String temperature) {
        this.temperature = temperature;
        return this;
    }

    public com.caipin.domain.table.GateAttribute setMask(Boolean mask) {
        this.mask = mask;
        return this;
    }

    public com.caipin.domain.table.GateAttribute setScreenTime(Long screenTime) {
        this.screenTime = screenTime;
        return this;
    }

    public com.caipin.domain.table.GateAttribute setImgBase64(String imgBase64) {
        this.imgBase64 = imgBase64;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.table.GateAttribute))
            return false;
        com.caipin.domain.table.GateAttribute other = (com.caipin.domain.table.GateAttribute)o;
        if (!other.canEqual(this))
            return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id))
            return false;
        Object this$deviceId = getDeviceId(), other$deviceId = other.getDeviceId();
        if ((this$deviceId == null) ? (other$deviceId != null) : !this$deviceId.equals(other$deviceId))
            return false;
        Object this$uuid = getUuid(), other$uuid = other.getUuid();
        if ((this$uuid == null) ? (other$uuid != null) : !this$uuid.equals(other$uuid))
            return false;
        Object this$nationCode = getNationCode(), other$nationCode = other.getNationCode();
        if ((this$nationCode == null) ? (other$nationCode != null) : !this$nationCode.equals(other$nationCode))
            return false;
        Object this$temperature = getTemperature(), other$temperature = other.getTemperature();
        if ((this$temperature == null) ? (other$temperature != null) : !this$temperature.equals(other$temperature))
            return false;
        Object this$mask = getMask(), other$mask = other.getMask();
        if ((this$mask == null) ? (other$mask != null) : !this$mask.equals(other$mask))
            return false;
        Object this$screenTime = getScreenTime(), other$screenTime = other.getScreenTime();
        if ((this$screenTime == null) ? (other$screenTime != null) : !this$screenTime.equals(other$screenTime))
            return false;
        Object this$imgBase64 = getImgBase64(), other$imgBase64 = other.getImgBase64();
        return !((this$imgBase64 == null) ? (other$imgBase64 != null) : !this$imgBase64.equals(other$imgBase64));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.table.GateAttribute;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $deviceId = getDeviceId();
        result = result * 59 + (($deviceId == null) ? 43 : $deviceId.hashCode());
        Object $uuid = getUuid();
        result = result * 59 + (($uuid == null) ? 43 : $uuid.hashCode());
        Object $nationCode = getNationCode();
        result = result * 59 + (($nationCode == null) ? 43 : $nationCode.hashCode());
        Object $temperature = getTemperature();
        result = result * 59 + (($temperature == null) ? 43 : $temperature.hashCode());
        Object $mask = getMask();
        result = result * 59 + (($mask == null) ? 43 : $mask.hashCode());
        Object $screenTime = getScreenTime();
        result = result * 59 + (($screenTime == null) ? 43 : $screenTime.hashCode());
        Object $imgBase64 = getImgBase64();
        return result * 59 + (($imgBase64 == null) ? 43 : $imgBase64.hashCode());
    }

    public String toString() {
        return "GateAttribute(id=" + getId() + ", deviceId=" + getDeviceId() + ", uuid=" + getUuid() + ", nationCode=" + getNationCode() + ", temperature=" + getTemperature() + ", mask=" + getMask() + ", screenTime=" + getScreenTime() + ", imgBase64=" + getImgBase64() + ")";
    }

    public Long getId() {
        return this.id;
    }

    public String getDeviceId() {
        return this.deviceId;
    }

    public String getUuid() {
        return this.uuid;
    }

    public String getNationCode() {
        return this.nationCode;
    }

    public String getTemperature() {
        return this.temperature;
    }

    public Boolean getMask() {
        return this.mask;
    }

    public Long getScreenTime() {
        return this.screenTime;
    }

    public String getImgBase64() {
        return this.imgBase64;
    }
}

